﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ScrumTime.Helpers
{
    public class ScrumTimePrivilege
    {

        public static bool canAddProduct(HttpSessionStateBase session ) {
            return ScrumTime.Helpers.Users.IsUserAdmin(ScrumTime.Helpers.SessionHelper.GetUserGuid(session));
        }

        public static bool canEditUser(HttpSessionStateBase session)
        {            
            String guid = ScrumTime.Helpers.SessionHelper.GetUserGuid(session);
            return ScrumTime.Helpers.Users.IsUserAdminOrScrumMaster(guid);
        }


        

        public static bool canViewProducts() {
            return false;
        }

        public static bool canAssignRol() {
            return false;
        }

    }
}   